package JavaSE.demoSE789;


class OuterClass{

    public int data1=10;
    public int data2=20;
    public static int data3=30;


    public static void fun(){
        System.out.println("==========");
    }

    /**
     * 实例内部类
     */
    class InnerClass{
        public int data4 =40;
        public int data5=50;
        public static final int data6=60;


        public InnerClass(){
            System.out.println("InnerClass的一个构造方法!");
        }

        /*public void method(){
            System.out.println("InnerClass的一个method方法!");
        }*/

    }



}

public class TestDemo {


    public static void main(String[] args) {
   OuterClass outerClass = new OuterClass();
   //OuterClass.InnerClass innerClass = new OuterClass().new InnerClass();



   //匿名对象
        System.out.println(new OuterClass());
    }
}
